package com.jia.product.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品评价(SpuComment)表实体类
 *
 * @author makejava
 * @since 2025-07-08 18:15:28
 */
@Getter
@SuppressWarnings("serial")
@TableName("pms_spu_comment")
public class SpuComment extends Model<SpuComment> {
    //id
    @TableId
    private Long id;
    //sku_id
    private Long skuId;
    //spu_id
    private Long spuId;
    //商品名字
    private String spuName;
    //会员昵称
    private String memberNickName;
    //星级
    private Integer star;
    //会员ip
    private String memberIp;
    //创建时间
    private Date createTime;
    //显示状态[0-不显示，1-显示]
    private Integer showStatus;
    //购买时属性组合
    private String spuAttributes;
    //点赞数
    private Integer likesCount;
    //回复数
    private Integer replyCount;
    //评论图片/视频[json数据；[{type:文件类型,url:资源路径}]]
    private String resources;
    //内容
    private String content;
    //用户头像
    private String memberIcon;
    //评论类型[0 - 对商品的直接评论，1 - 对评论的回复]
    private Integer commentType;


    public void setId(Long id) {
        this.id = id;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public void setSpuId(Long spuId) {
        this.spuId = spuId;
    }

    public void setSpuName(String spuName) {
        this.spuName = spuName;
    }

    public void setMemberNickName(String memberNickName) {
        this.memberNickName = memberNickName;
    }

    public void setStar(Integer star) {
        this.star = star;
    }

    public void setMemberIp(String memberIp) {
        this.memberIp = memberIp;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setShowStatus(Integer showStatus) {
        this.showStatus = showStatus;
    }

    public void setSpuAttributes(String spuAttributes) {
        this.spuAttributes = spuAttributes;
    }

    public void setLikesCount(Integer likesCount) {
        this.likesCount = likesCount;
    }

    public void setReplyCount(Integer replyCount) {
        this.replyCount = replyCount;
    }

    public void setResources(String resources) {
        this.resources = resources;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setMemberIcon(String memberIcon) {
        this.memberIcon = memberIcon;
    }

    public void setCommentType(Integer commentType) {
        this.commentType = commentType;
    }

}

